/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sonth.BLL;

import sonth.EL.User;
import sonth.DAL.UserDAO;

/**
 *
 * @author Administrator
 */
public final class UserService {

    /**
     * desc.
     */
    private UserService() {
    }

    /**
     * desc.
     * @param email desc
     * @param password desc
     * @return User desc
     */
    public static User getByEmailAndPassword(final String email,
            final String password) {
        User user = null;
        try {
            user = UserDAO.selectByEmailAndPassword(email, password);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        return user;
    }
}
